﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Database;
public partial class HienthiBL : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var pm = new checkLogin();
        pm.redirectToLoginPage();
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        if (Convert.ToString(e.CommandArgument) == "dk")
        {
            BinhLuan bl = new BinhLuan();
            int stt = Convert.ToInt32(((HyperLink)e.Item.FindControl("hplSTT")).Text);
            //nv.XoaNV(manv);
            bl.XoaBL(stt);
            LayDuLieu();
            Response.Redirect("HienthiBL.aspx");
        }
        else
        {
            LayDuLieu();
        }
    }

    public void LayDuLieu()
    {


        PagedDataSource pgitems = new PagedDataSource();
        DataView dv = new DataView(BinhLuan.DSBL().Tables[0]);

    }

}
